package com.zzb.myInterface;

public class UITeacher extends Employee implements Painting{
    @Override
    public void paint() {
        System.out.println("我是UI讲师，我会画画");
    }

    @Override
    public void work() {
        System.out.println("我是UI讲师，我讲UI设计课");
    }

    @Override
    public String toString() {
        return "UITeacher{" +
                "name='" + getName() + '\'' +
                ", sex='" + getSex() + '\'' +
                ", age=" + getAge() +
                "}";
    }
}
